import request from "./axios";

export default {
    query: (params: any) => {//查询的接口
        return request({
            method: "get",
            url: "/userList",
            params
        })
    },
    post: (data: any) => {//新增的接口
        return request({
            method: "post",
            url: "/userList",
            data
        })
    },
    delete:(id: string)=>{
        return request({
            method:"delete",
            url:"/userList/"+id
        })
    }
}
